for i in range(100, 1000):
    list = [int(k) for k in str(i)]
    for j in range(len(list)):
        sum = 0
        sum += list[j] ** 3
    if sum == i:
        print(f"{i}是水仙花数")
